package day2.HomeWork.Animal;

public class Cat extends Animal{
    //猫的颜⾊
    private String color;

    public Cat() {
    }

    public Cat(String name, String color) {
        super(name);
        this.color = color;
    }

    @Override
    public void move() {
        System.out.println("猫在四脚爬行");
    }

    @Override
    public void makeSound() {
        System.out.println("猫发出喵喵叫声");
    }
}
